package com.ias.agdis_r.bean.task;

import java.util.ArrayList;
import java.util.List;

public class TaskTMRSBean {
	public class RefreshItem {
		private TaskServiceLabel taskServiceLabel;
		private boolean read;
		private String tnb;
		public TaskServiceLabel getTaskServiceLabel() {
			return taskServiceLabel;
		}
		public void setTaskServiceLabel(TaskServiceLabel taskServiceLabel) {
			this.taskServiceLabel = taskServiceLabel;
		}
		public boolean isRead() {
			return read;
		}
		public void setRead(boolean read) {
			this.read = read;
		}
		public String getTnb() {
			return tnb;
		}
		public void setTnb(String tnb) {
			this.tnb = tnb;
		}

	}
	private List<RefreshItem> refreshlist = null;
	public TaskTMRSBean() {
		super();
		refreshlist = new ArrayList<RefreshItem>();
	}  
	public int getAllnum() {
		return refreshlist.size();
	}

	public List<RefreshItem> getRefreshlist() {
		return refreshlist;
	}
	public void setRefreshlist(List<RefreshItem> refreshlist) {
		this.refreshlist = refreshlist;
	}
	public int getNewnum() {
		int r = 0;
		for(RefreshItem item : refreshlist){
			if (item.read == false){
				r ++;
			}
		}
		return r;
	}

}
